let url = new URL('http://fckjhn.cn:3008/login?uname=momoko&password=8888#usersearch');
console.log(url.hash);//锚
console.log(url.search);
console.log(url.searchParams);

let arr = url.searchParams.entries()
//迭代数组的
let iterator = arr[Symbol.iterator]()
let rel = iterator.next();
while (!rel.done) {
  console.log(rel.value[0], rel.value[1]);
  rel = iterator.next();
}




